<?php

class Public_Applet_UserSuccessView extends BlogPublicBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		$this->setupHtml($rd);
        
		/* @var $comments_model Public_CommentsModel */
		$comments_model = $this->getContext()->getModel('Comments', 'Public');
		$na_comments = $comments_model->findNotApprovedComments();
		
		$this->setAttribute('not_appropved_comments', count($na_comments));
		$this->setAttribute('title', 'UserApplet');
	}
}

?>
